package com.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName("news_channel")
public class Channel {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String channel;
    private String title;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time;
    private String src;
    private String category;
    private String pic;
    private String url;
    private String weburl;
    private String content;
}
